package com.lqk.facade;

/**
 * @author lqk
 * @date 2021/12/6 18:23
 */
public class TheaterLight {
    private TheaterLight(){

    }
    // 使用单例模式，静态内部类
    private static class TheaterLightInstance{
        private static final TheaterLight INSTANCE = new TheaterLight();
    }

    // 提供一个静态的公有方法，直接返回 SingletonInstance.INSTANCE
    public static TheaterLight getInstance(){
        return TheaterLight.TheaterLightInstance.INSTANCE;
    }

    public void on(){
        System.out.println(" TheaterLight on ");
    }
    public void off(){
        System.out.println(" TheaterLight off ");
    }

    public void bright(){
        System.out.println(" TheaterLight bright ");
    }

    public void dim(){
        System.out.println(" TheaterLight dim ");
    }
}
